import request from "@/utils/request";

// 查询保养项目列表
export function listService(query) {
  return request({
    url: "/equipment/service/list",
    method: "get",
    params: query,
  });
}

// 查询保养项目详细
export function getService(ids) {
  return request({
    url: "/equipment/service/" + ids,
    method: "get",
  });
}

// 新增保养项目
export function addService(data) {
  return request({
    url: "/equipment/service",
    method: "post",
    data: data,
  });
}

// 修改保养项目
export function updateService(data) {
  return request({
    url: "/equipment/service",
    method: "put",
    data: data,
  });
}

// 删除保养项目
export function delService(ids) {
  return request({
    url: "/equipment/service/" + ids,
    method: "delete",
  });
}
